package com.example.lichvansu;

import com.example.lichvansu.PhoneGapActivity;
import com.example.lichvansu.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

public class SplashActivity extends Activity {
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		
		new Handler().postDelayed(new Runnable(){
            @Override
            public void run() {
                /* Create an Intent that will start the Menu-Activity. */
                Intent mainIntent = new Intent(SplashActivity.this, com.example.lichvansu.PhoneGapActivity.class);
                SplashActivity.this.startActivity(mainIntent);
                SplashActivity.this.finish();
            }
        }, 3000);
		//DatabaseHelper db = new DatabaseHelper(getActivity());
		//Log.i("DATABASE NUM ROW", "" + db.getAllEvent().size());
	}
}